Blockly.Blocks['1635506201932'] = {
  init: function() {
    this.jsonInit({
      "type": "1635506201932",
      "message0": "Forwalk02R",
      "previousStatement": null,
      "nextStatement": null,
      "colour": '#C643F1',
      "toolip": "",
      "helpUrl": ""
    });
  }
};

Blockly.Lua['1635506201932'] = function(block) {
  var code = "MOTOsetspeed(30)\nMOTOrigid16(30,30,30,55,85,100,90,50,30,30,30,75,85,100,90,70)\nMOTOrigid16(30,30,30,65,75,80,75,65,30,30,30,30,30,30,30,30)\n\n\n-- 启动\nMOTOsetspeed(15)\nMOTOmove19(80, 35, 100, 105, 83, 32, 138, 110, 120, 165, 100, 115, 109, 150, 72, 112, 128, 71, 100)\nMOTOwait()\n\n\n-- 2\nMOTOmove19(80, 35, 100, 106, 93, 54, 124, 113, 120, 165, 100, 112, 109, 152, 71, 112, 128, 71, 100)\nMOTOwait()\nMOTOrigid16(30,30,30,75,85,100,90,70,30,30,30,50,55,50,50,50)\n\n\n-- 4\nMOTOsetspeed(30)\nMOTOmove19(80, 35, 110, 106, 93, 54, 123, 113, 120, 165, 110, 114, 87, 163, 44, 112, 128, 71, 100)\nMOTOwait()\nMOTOrigid16(30,30,30,45,45,45,45,45,30,30,30,45,65,65,65,45)\n\n\n-- 左脚迈出2\nMOTOsetspeed(20)\nMOTOmove19(80, 35, 110, 106, 90, 62, 117, 111, 120, 165, 110, 114, 87, 163, 44, 112, 128, 71, 100)\nMOTOwait()\nMOTOsetspeed(10)\nMOTOmove19(80, 35, 110, 100, 90, 62, 112, 100, 120, 165, 110, 103, 87, 163, 44, 105, 128, 71, 100)\nMOTOwait()\nMOTOsetspeed(10)\nMOTOmove19(80, 30, 125, 100, 68, 46, 111, 100, 120, 170, 125, 100, 92, 145, 63, 100, 128, 71, 100)\nMOTOwait()\n";
  return code;
}

